 <style>
    td{BORDER-TOP:1px #000 solid;border-right:1px #000 solid;}
 </style>

        <g:set var="entityName" value="${message(code: 'plan.label', default: 'Plan')}" />
                <div style="padding: 5px 0;">
                    <table style='border-bottom:1px #000 solid;border-left:1px #000 solid;background:#ECF9FF;'>
                        <tbody>
                            <tr class="prop"> 
                             <%
                                def groupByUnitTimeList = planList.groupBy{
                                    it.restTime.unitTime
                                }
                              %>
                              <td width="100px" height="35px">上课时间</td>
                            <g:each in="${['一','二','三','四','五']}" status="i" var="weekInstance">
                                <td ><b>周${weekInstance}</b></td>
                            </g:each>
                            </tr> 
                                    <%
                                        groupByUnitTimeList.each{
                                        %>            
                                        <tr>  
                                        <td>
                                        ${it.value[0].restTime.startHour}:
                                        ${it.value[0].restTime.startMinute}
                                        ~
                                        ${it.value[0].restTime.endHour}:
                                        ${it.value[0].restTime.endMinute}
                                        </td>
                                        <%
                                            it.value.each{elem ->                                                 
                                        %>                                            
                                            <td  height="35px" class="everyCourse ${elem.course}" id="course${elem.id}" planID="${elem.id}" course="${elem.course}">
                                                <font color="red">${elem.course}</font><br>${elem.teacher?'('+elem.teacher+')':'未添加'}
                                            </td>
                                        <%
                                            }
                                         %> 
                                          </tr>
                                    <%
                                        }
                                    %> 
                        </tbody>
                    </table>
                </div> 
                <div class="buttons">
                <input type="button" value="返回" onclick="javascript:history.go(-1)">
            </div>